/**
 * Created by Administrator on 2017/5/21.
 */
$(function () {
var time;
<<<<<<< HEAD
var tuichu;
=======
>>>>>>> 30d92055e9c414d4b857afd0613e979a055c3b0c
    $("#tab > li").mouseenter(function () {
        if(($(this).index()<1)||($(this).index()>4)){
            return
        }else {
            $(".tabsBox").addClass("hid");
            $(".tabsBox").eq($(this).index()).removeClass("hid");
            clearTimeout(time)
        }
    })
    $('#tab>li').mouseleave(function () {
        time=setTimeout(function(){$(".tabsBox").addClass("hid")},1000)
    })
    $('.tabsBox').mouseenter(function () {
        $(this).removeClass('hid');
        clearTimeout(time)

    })
    $('.tabsBox').mouseleave(function () {
        $(this).addClass('hid')
    })
<<<<<<< HEAD
    
    //退出
    $('#tu-tuichu').click(function(){
        console.log(1);
        tuichu=1;
        $.post(
            "/index/request/tuichu",
            {
                tuichu:tuichu,
            },
            function(data){
                if (data==true) {
                    window.location.href = "/index/index/notice?status=退出成功&url='__WEB_SITE__/index/index/index";
                }else{
                    window.location.href = "/index/index/notice?status=退出失败&url='__WEB_SITE__/index/index/index";
                }
                
            });
        });
})
=======
})
>>>>>>> 30d92055e9c414d4b857afd0613e979a055c3b0c
